//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_x_create_vec.sqf"
#include "x_setup.sqf"

#include "x_uiinc.sqf"

if (!alive player || {__pGetVar(xr_pluncon)}) exitWith {};

private "_index";
disableSerialization;
_index = lbCurSel (__uiGetVar(X_VEC_DIALOG) displayCtrl 44449);
closeDialog 0;
if (_index < 0) exitWith {};
[0,0,0, [GVAR(create_bike) select _index, 0]] spawn FUNC(bike);